<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        var str = 'hello world'
        let r1 = str.startsWith('hell')
        console.log(r1);
        let r2 = str.endsWith('world')
        console.log(r2);
    </script>
</body>

</html>